#ifndef _SWIOXI_H
#define _SWIOXI_H

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "swlog.h"

#include <unistd.h>
#include <fcntl.h>


#define GPIO_BASE_ADDR 0x41210000
#define POWER_BASE_ADDR 0x412c0000


void SwioxilOut16(uint64_t phyaddr, uint16_t val);
int SwioxilIn16(uint64_t phyaddr);

int SwioxiOut32(uint64_t phyaddr, uint32_t val);
int SwioxiIn32(uint64_t phyaddr,uint32_t *val);
int SwioxiGetSlot(unsigned int *slotNum,unsigned int *chasisNum);
int SwioxiCtrlPower(unsigned char slotNum,int option);


#endif
